package org.hbs.blog.code.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.hbs.blog.code.biz.IBlogBiz;
import org.hbs.blog.code.dao.IBlogDao;
import org.hbs.blog.code.entity.Blog;
import org.springframework.stereotype.Service;

@Service("blogBiz")
public class BlogBiz implements IBlogBiz {

	@Resource(name="blogDao")
	private IBlogDao blogDao;

	public Blog insertBlog(Blog blog) {
		return blogDao.insertBlog(blog);
	}

	public List<Blog> selectAllBlog() {
		return blogDao.selectAllBlog();
	}

	public Blog selectBlogByID(String blogID) {
		return blogDao.selectBlogByID(blogID);
	}

	public void deleteBlogByID(String blogID) {
		blogDao.deleteBlogByID(blogID);
	}
	
}
